package cn.cvs.dao;

import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @auth wzy
 * @date 2023/9/15 15:13
 */
public interface SysUserMapper {

    /**
     * 统计用户数量
     * @return
     */
    int count();

    List<SysUser> list(@Param("roleId") Integer roleId, @Param("realName") String realName);

    List<SysUser> listByRoles(@Param("list") List<Integer> roleIds,@Param("startIndex") Integer startIndex,@Param("pageSize") Integer pageSize);

    int add(SysUser sysUser);

    int update(SysUser sysUser);

//    List<SysUser> list(SysUser sysUser);

//    List<SysUser> list(Map<String,Object> map);

}
